<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>router路由转发的栗子</title>
		<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css" />
		<script src="js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/Underscore-1.8.3min.js"></script>
		<script src="js/backbone.js"></script>
		<script type="text/javascript">
		</script>
	</head> 
	<body>
	<a href="#action">我是超链接</a>
		<script type="text/javascript">
			 var AppRouter=Backbone.Router.extend({
			 	routes:{
			 	  "*action":"defaultRoute"	
			 	},
			 	defaultRoute:function(actions){
			 		
			 		alert(actions);
			 	}
			 });
			 
			 var app_router=new AppRouter;
			 Backbone.history.start();//通过histroy.start初始化路由
		</script>
			
	</body>
</html>